package com.liangzai.代理模式.proxy;

import com.liangzai.代理模式.OrderService;
import com.liangzai.代理模式.impl.OrderServiceImpl;

/**
 * @author leiliang
 * @version 1.0
 * @Description 代理类
 * @date 2021/10/21 19:17
 */
public class OrderServiceProxy extends OrderServiceImpl {

    /**
     * 被代理对象
     */
   /* private OrderService orderService;

    public OrderServiceProxy(OrderService orderService) {
        this.orderService = orderService;
    }
*/
    @Override
    public void order() {
        System.out.printf(">>>>打印订单日志开始");
        super.order();
        System.out.printf(">>>>打印订单日志结束");

    }
}
